#ifndef TRACKLIST_H
#define TRACKLIST_H

#include<QList>
#include<QScrollArea>
#include<QVBoxLayout>
#include<QListWidget>

class Song;

#include"track.h"

class TrackList : public QListWidget
{
    Q_OBJECT
public:
    explicit TrackList(QWidget *parent = 0);
    ~TrackList();

signals:

public slots:
    void slotAdded(Song* song, int pos);
    void slotPlaying(int i);
private:
    QWidget *m_widget;
    QVBoxLayout *m_outerLayout;
    QScrollArea *m_scroll;
    QVBoxLayout *m_layout;
    Track *m_emph;
    QList<Track*> m_tracks;
};

#endif // TRACKLIST_H
